<?php include __DIR__.'/../public/header_m.php';?>
<?php include __DIR__.'/../public/dialog.php';?>
<?php include __DIR__.'/../public/datepicker.php';?>
<?php include __DIR__.'/../public/kindeditor.php';?>
<script src='<?php echo JS_PATH ;?>/misc/date.js?v=<?php echo SYS_VERSION;?>'></script>
<div class="container mw-1400px">
  <div id="titlebar">
    <div class="heading">
      <span class="prefix"><i class="icon-folder-close-alt"></i></span>
      <strong><small class="text-muted"><i class="icon icon-plus"></i></small> 添加新文章</strong>
    </div>
  </div>
  <form id="dataform" target="hiddenwin" method="post" class="form-condensed">
    <table class="table table-form"> 
      <tbody>
      <tr>
        <th class="w-90px">文章标题</th>
        <td class="w-p45-f" ><div class="required required-wrapper"></div><input type="text" class="form-control" value="" id="name" name="name">
        </td>
        <td></td>
      </tr>
      <tr>
        <th>内容提要</th>
        <td><div class="required required-wrapper"></div>
          <textarea name="data[mark]" id="mark" class="form-control" type="text" style="height:100px;"></textarea>
        </td>
      </tr>

      <tr>
        <th>文章分类</th>
        <td><div class="required required-wrapper"></div>
          <div class="input-group">
            <select class="form-control w-30px" id="role" name="data[group_id]">
                <option value="0">请选择用户组</option>
            </select>
            <span class="input-group-addon">发布日期</span>
            <input type="text" placeholder="空则为当前时间" class="form-control w-30px form-datetime" value="" id="begin" name="begin" style="width:130px;">
          </div>
        </td>
      </tr>

      <tr>
        <th>标签</th>
        <td colspan="2" id="productsBox" class="text-left">
          <div class="required required-wrapper"></div>
          <div class="input-group">
              <input type="text" class="form-control" value="" id="name" name="name" placeholder="多关标签之间用“,”隔开">
              <span class="input-group-addon">关键词</span>
              <input type="text" class="form-control" value="" id="name" name="name" placeholder="多关键词之间用“,”隔开">
          </div>
        </td>
      </tr>
      <tr>
        <th>文章内容</th>
        <td colspan="2">
          <textarea name='data[desc]' id='desc' rows='6' class='form-control' style="height:300px;"></textarea>
        </td>
      </tr>  
      <tr>
        <th>分页方式</th>
        <td colspan="2">
          <select class="form-control w-130px" id="role" name="data[group_id]">
                <option value="0">手动分页</option>
            </select>
        </td>
      </tr>
        <tr>
        <th>文章缩略图</th>
        <td colspan="2">
            <input name="dsdf" type="text" id="thumb" class="form-control" style="width:200px;float:left;" />
            <?php echo HTML::swfUploadButton('thumb', 'submit_images', 'jpg|jpeg|gif|bmp|png|docx', 1);?>
        </td>
      </tr>       
      <tr>
        <td></td><td class="text-center" colspan="2"> <button class="btn btn-submit btn-primary" id="submit" type="submit">保存</button><a class="btn btn-back" href="javascript:history.go(-1);">返回</a></td>
      </tr>
    </tbody></table>
  </form>
</div>
<?php include __DIR__.'/../public/footer_m.php';?>